import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../Home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/child',
    name: 'child',
    component: () => import(/* webpackChunkName: "about" */ '../views/Views_Main/Child.vue')
  },
  {
    path: '/adolescent',
    name: 'adolescent',
    component: () => import(/* webpackChunkName: "about" */ '../views/Views_Main/Adolescent.vue')
  },
  {
    path: '/old',
    name: 'old',
    component: () => import(/* webpackChunkName: "about" */ '../views/Views_Main/Old.vue')
  },
  {
    path: '/all',
    name: 'all',
    component: () => import(/* webpackChunkName: "about" */ '../views/Views_Main/All.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import(/* webpackChunkName: "about" */ '../UserCenter.vue')
  },
  {
    path: '/byarea',
    name: 'byarea',
    component: () => import(/* webpackChunkName: "about" */ '../views/view1/byArea.vue')
  },
  {
    path: '/bydepartment',
    name: 'bydepartment',
    component: () => import(/* webpackChunkName: "about" */ '../views/view1/ByDepartment.vue')
  },
  {
    path: '/classahospital',
    name: 'classahospital',
    component: () => import(/* webpackChunkName: "about" */ '../views/view2/ClassAHospital.vue')
  },
  {
    path: '/cmhospital',
    name: 'cmhospital',
    component: () => import(/* webpackChunkName: "about" */ '../views/view2/CMHospital.vue')
  },
  {
    path: '/bytalent',
    name: 'bytalent',
    component: () => import(/* webpackChunkName: "about" */ '../views/view2/ByTalent.vue')
  },
  {
    path: '/aboutus',
    name: 'aboutus',
    component: () => import(/* webpackChunkName: "about" */ '../AboutUs.vue')
  },
  {
    path: '/diagnosis',
    name: 'diagnosis',
    component: () => import(/* webpackChunkName: "about" */ '../diagnosis.vue')
  },
  {
    path: '/byareah',
    name: 'byareah',
    component: () => import(/* webpackChunkName: "about" */ '../views/view2/ByAreaH.vue')
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
